package com.jinxinol.basic.system.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jinxinol.basic.system.domain.SysFastmenu;
import com.jinxinol.basic.system.domain.SysRight;
import com.jinxinol.basic.system.mapper.SysFastmenuMapper;
import com.jinxinol.basic.system.service.ISysFastmenuService;
import com.jinxinol.core.common.AbstractService;

/**
 * @author Automatic generation * 快捷栏目设置表Service
 */
@Service
public class SysFastmenuService extends AbstractService<SysFastmenu> implements ISysFastmenuService{
	@Autowired
	protected void setMapper(SysFastmenuMapper sysFastmenuMapper) {
		this.mapper = sysFastmenuMapper;
	}

	/**
	 * 根据用户ID 查询用户所设置的快捷栏目菜单 List
	 * */
	@Override
	public List<SysRight> getUserRight(Integer user_id) {
		List<SysRight> rList=new ArrayList<SysRight>();
		rList=((SysFastmenuMapper)mapper).getUserRight(user_id);
		return rList;
	}

	/**
	 * 根据用户ID 删除所设置的快捷栏目菜单
	 * */
	@Override
	public void deleteUserRight(Integer user_id) {
		((SysFastmenuMapper)mapper).deleteUserRight(user_id);
	}
}
